<template>
	<div class="son">
		<h3>孙组件</h3>
		<h4>祖给的：：{{a}}、{{b}}、{{c}}、{{d}}</h4>
		<button @click="$emit('gengxin-a',1000)">点我更新a</button>
		<button @click="$emit('gengxin-b',2000)">点我更新b</button>
	</div>
</template>

<script>
	export default {
		name:'Son',
		props:['a','b','c','d']
	}
</script>

<style lang="less" scoped>
	.son{
		margin-top: 20px;
		background-color: orange;
		padding: 20px;
		border-radius: 10px;
		box-shadow: 0 0 10px black;
	}
</style>